﻿<navigation:Page x:Class="Corina.Lantern.Hub.Views.Users.SubuserView"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:localViewmodel="clr-namespace:Corina.Lantern.Hub.Viewmodels"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                 xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
                 xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
                 Style="{StaticResource PageStyle}"
                 d:DesignHeight="480"
                 d:DesignWidth="640"
                 mc:Ignorable="d">
    <navigation:Page.DataContext>
        <localViewmodel:SubuserViewmodel />
    </navigation:Page.DataContext>
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <toolkit:BusyIndicator BusyContent="{StaticResource IDS_COMMON_BUSYCONTENT_LOADING}" IsBusy="{Binding IsBusy}">
            <sdk:DataGrid AutoGenerateColumns="False"
                          ColumnWidth="*"
                          ItemsSource="{Binding ItemsCollection}">
                <sdk:DataGrid.Columns>
                    <sdk:DataGridTextColumn Width="60"
                                            Binding="{Binding ItemIndex}"
                                            Header="序号" />
                    <sdk:DataGridTextColumn Binding="{Binding Name}" Header="单位名称" />
                    <sdk:DataGridTextColumn Binding="{Binding RegisterTime, StringFormat=\{0:yyyy-MM-dd HH:mm tt\}}" Header="注册时间" />
                    <sdk:DataGridTextColumn Binding="{Binding Linkman}" Header="联系人" />
                </sdk:DataGrid.Columns>
            </sdk:DataGrid>
        </toolkit:BusyIndicator>
    </Grid>
</navigation:Page>
